import request from '@/utils/request';

//分页查询图书分类
export function queryTypeByPage(data,currentPage,pageSize){
    return request({
        url:'/type/queryTypeByPage',
        method:'post',
        data,
        params:{
            currentPage,
            pageSize
        }
    })
}
//保存图书分类
export function saveType(data){
    return request({
        url:'/type/saveType',
        method:'post',
        data
    })
}
//批量删除
export function deleteBatch(data){
    return request({
        url:'/type/deleteBatch',
        method:'post',
        data
    })
}
//查询所有图书类型
export function queryAllBookType(data){
    return request({
        url:'/type/queryAllBookType',
        method:'post',
        data
    })
}